import request from 'utils/request'

// 获取所有课程
export function getClassSchedule(data,studentId) {
    return request({
        url: '/schedule/today/allSubject/'+ studentId +'/' + data,
        method: 'get',
		data:data
    })
}

// 获取所有课程
// export function courseRegistration(data) {
//     return request({
//         url: '/courseRegistration/select',
//         method: 'post',
// 		data:data
//     })
// }

// 获取所有课程
export function courseRegistration(data) {
    return request({
        url: '/registration/apply',
        method: 'post',
		data:data
    })
}

// 取消课程
export function cancelRegistration(data) {
    return request({
        url: '/registration/apply/cancel',
        method: 'post',
		data:data
    })
}

